<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand hidden-sm" href="/">电影后台管理系统</a>
        </div>
        <div class="navbar-collapse collapse" role="navigation" aria-expanded="false" style="height: 1px;">
            <ul class="nav navbar-nav">
                <li class="<%- title=='home'?'active':'' %>"><a href="/">主页</a></li>
                <% if(username){ %>
                <li class="<%- title=='movie'?'active':'' %>"><a href="/movie">电影中心</a></li>
                <li class="<%- title=='comment'?'active':'' %>"><a href="/comment/clist">评论中心</a></li>
                <li class="<%- title=='client'?'active':'' %>"><a href="/client">在线聊天</a></li>
                <li class="<%- title=='mine'?'active':'' %>"><a href="/mine">个人信息</a></li>
                <% }else{ %>
                <li class="<%- title=='login'?'active':'' %>"><a href="/login">登录</a></li>
                <li class="<%- title=='register'?'active':'' %>"><a href="/register">注册</a></li>
                <% } %>
            </ul>
            <% if(username){ %>
                <ul class="nav navbar-nav navbar-right hidden-sm">
                    <li><a href="/logout">退出登录</a></li>
                </ul>
                <% } %>
        </div>
    </div>
</div>